/* 自定义Scss混合通用样式 */
/* 关闭按钮动画样式 */

/* 一行文本超出、显示省略号*/
@mixin textOver{
	/* #ifndef APP-NVUE */
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	/* #endif */
	/* #ifdef APP-NVUE */
	lines:1;
	text-overflow: ellipsis;
	/* #endif */
}

/* 指定行数文本超出显示省略号 */
@mixin multiLineOver($lines:2){
	/* #ifndef APP-NVUE */
	overflow: hidden;
	-webkit-line-clamp: $lines;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	/* #endif */
	/* #ifdef APP-NVUE */
	lines:$lines;
	/* #endif */
}

/* 弹性盒子布局 */
@mixin flexBox($direction:row) {
	/* #ifndef APP-NVUE */
	display: flex;
	/* #endif */
	flex-direction: $direction;
}
/* 弹性盒子水平对齐方式 */
@mixin flexRowAlign($align:flex-start) {
	/* #ifndef APP-NVUE */
	display: flex;
	/* #endif */
	flex-direction: row;
	align-items: center;
	justify-content: $align;
}

/* 弹性盒子垂直对齐方式 */
@mixin flexColumnAlign($align:flex-start) {
	/* #ifndef APP-NVUE */
	display: flex;
	/* #endif */
	flex-direction: column;
	align-items: $align;
}

/* 弹性盒子水平垂直居中 */
@mixin flexCenter($direction:row) {
	/* #ifndef APP-NVUE */
	display: flex;
	/* #endif */
	flex-direction: $direction;
	align-items: center;
	justify-content: center;
}

/* 遮罩固定定位 */
@mixin fixedFullScreen($z_index:initial){
	z-index: $z_index;
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: rgba(0,0,0,.6);
}

/* 底部固定定位 */
@mixin fixedBottom($z_index:initial) {
	width: 750rpx;
	z-index: $z_index;
	position: fixed;
	left: 0;
	bottom: 0;
}
/* 顶部固定定位 */
@mixin fixedTop($z_index:initial) {
	width: 750rpx;
	z-index: $z_index;
	position: fixed;
	left: 0;
	top: 0;
}

/* 绝对定位水平垂直居中 */
@mixin positionCenter($z_index:initial) {
	z-index: $z_index;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
}

/* 绝对定位 */
@mixin positionAbsolute($left:auto,$top:auto,$right:auto,$bottom:auto) {
	position: absolute;
	top: $top;
	left: $left;
	right: $right;
	bottom: $bottom;
}
